
package com.beimi.net;

import com.corundumstudio.socketio.SocketIOClient;
import com.corundumstudio.socketio.annotation.OnConnect;
import com.corundumstudio.socketio.annotation.OnDisconnect;

public class CmdConnect{

	@OnConnect
	public void onConnect(SocketIOClient client) {
		System.err.println("client connect " + client.getSessionId().toString());
	}

	// 添加@OnDisconnect事件，客户端断开连接时调用，刷新客户端信息
	@OnDisconnect
	public void onDisconnect(SocketIOClient client) {
		System.err.println("on discount" + client.getSessionId().toString());
	}

}